package org.blogwu.learn.threadLearn;

import java.util.HashMap;

public class HashTest {
    public static void main(String[] args) {
        HashMap<String, String> hh = new HashMap<String, String>(23);
        hh.put("1", "1");
        Node<String> ss = new Node("SS");
        for (Node p = ss, cc = p.next; ; ) {

        }

    }


    private static class Node<E> {
        volatile E item;
        volatile Node<E> next;

        public Node(E item) {
            this.item = item;
        }

        public E getItem() {
            return item;
        }

        public void setItem(E item) {
            this.item = item;
        }

        public Node<E> getNext() {
            return next;
        }

        public void setNext(Node<E> next) {
            this.next = next;
        }
    }
}
